﻿using System.Collections.Generic;
using System.Linq;
using WholesaleOnline.DataContract.View;
using WholesaleOnline.Model;

namespace WholesaleOnline.DataContract.Extension
{
    public static class SellerExtension
    {
        public static IEnumerable<SellerView> ConvertToSellerView(this IEnumerable<WoSeller> sellers)
        {
            return sellers.Select(s => new SellerView
            {
                ID = s.Id.ToString(),
                Pic = s.LinkImage
            });
        }
    }
}
